﻿@{
    Layout = null;
}
<form id="form_AddMenu" role="form" onkeydown="if(event.keyCode==13){return false;}">
    <div class="form-group">
        <label>菜单类型：</label>
        <select class="form-control dis" name="MenuType" id="sel_permission_type">
            <option value="1">菜单</option>
            <option value="2">按钮</option>
        </select>

    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">上级菜单：</label>
        @*<select class="form-control dis" name="ParentId" id="sel_parent_meun">
                <option value="0">无</option>
            </select>*@
        @Html.DropDownList("ParentId", null, new { @class = "form-control dis" })
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">菜单名称：</label>
        <input type="text" name="MenuName" id="txt_permission_name" placeholder="请输入菜单名称" class="form-control dis">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">菜单控制器：</label>
        <input type="text" name="Controller" id="txt_permission_url" placeholder="请输入菜单URL" class="form-control dis">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">菜单视图：</label>
        <input type="text" name="ActionName" id="txt_permission_url" placeholder="请输入菜单URL" class="form-control dis">
    </div>


</form>
<script>
    $(function () {
        $('#form_AddMenu').bootstrapValidator({
          
            fields: {
                MenuName: {
                    validators: {
                        notEmpty: {
                            message: '菜单名称不能为空'
                        },
                    }
                },
            }
        });
    })
</script>

